package com.itany.mall.dao;

import java.util.List;

import com.itany.mall.entity.Product;

public interface ProductDao {

	List<Product> selectAll();

	Product selectByName(String name);

	void insert(Product p);

	Product selectById(long productId);

	List<Product> findAll(int pageNo, int pageSize);

	/**
	 * 查询总数据条数
	 * @return
	 */
	int selectTotalCount();

}
